/** 热门搜索功能模块 */
export const hotKeywordModuleMixin = {
	data() { return { hotKeywordData: [], hotKeywordLoading: true } },
	onLoad() { this.gethotKeywordFn(); },
	methods: {
		async gethotKeywordFn() {
			this.hotKeywordLoading = true;
			try {
				const res = await this.$post('64feac3aa90f4', { type: 1 });
				this.hotKeywordData = res.data || [];
			} catch (e) {}
			this.hotKeywordLoading = false;
		}
	}
};